package com.gitee.kenewstar.migration.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.kenewstar.migration.constants.Const;
import com.gitee.kenewstar.migration.core.MigrationCode;
import com.gitee.kenewstar.migration.core.MigrationTenantId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author kenewstar
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "hsdr_job_info", schema = Const.HZERO_SCHEDULER)
public class JobInfo extends CommonDto {

    @TableId(type = IdType.AUTO)
    private Long jobId;
    private Long executorId;
    @MigrationCode
    @ExcelProperty("任务编码")
    private String jobCode;
    private String jobCron;
    private String description;
    private String jobParam;
    private String alarmEmail;
    private String executorStrategy;
    private String failStrategy;
    private String strategyParam;
    private String glueType;
    private String jobHandler;
    private Integer cycleFlag;
    private Date startDate;
    private Date endDate;
    @MigrationTenantId
    @ExcelProperty("租户ID")
    private Long tenantId;
    private Long parentId;
    private Integer serial;
    private String expandParam;
    private Integer initFlag;
    private String sourceKey;
    private String logStrategy;

}
